<?php
/**
 * filename: checksessionlogin.php 
 * goal: check permission of user
 */
 
 session_start();
 if($_SESSION['login'] != 'true')
 {
	 header('Location:login.php');
 }
?>